import { ElMessage, ElMessageBox } from 'element-plus'
import { showToast } from 'vant'
import { useRoute, useRouter } from 'vue-router'
import pinia from '~/admin/_find/store'
import useApp from '~/admin/_find/store/app'
import R from './r'
import { Platform } from './enums'


const useGlobal = () => {
    const $ = {
        route: useRoute(),
        router: useRouter(),
        appStore: useApp(pinia),
        message: ElMessage,
        messageBox: ElMessageBox
    }
    return $
}
export default useGlobal
